home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
netdmo.exe
/
CONSOLE.FRM
< prev
next >
Wrap
Text File
|
1993-12-10
|
3KB
|
118 lines
Version 1.00
BEGIN Form Console
AutoRedraw = 0
BackColor = QBColor(1)
BorderStyle = 1
Caption = "Send Console Message"
ControlBox = -1
Enabled = -1
ForeColor = QBColor(0)
Height = Char(12)
Left = Char(9)
MaxButton = -1
MinButton = -1
MousePointer = 0
Tag = ""
Top = Char(2)
Visible = -1
Width = Char(62)
WindowState = 0
BEGIN TextBox msg1
BackColor = QBColor(1)
BorderStyle = 1
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(3)
Left = Char(4)
MousePointer = 0
MultiLine = 0
ScrollBars = 0
TabIndex = 0
TabStop = -1
Tag = ""
Text = ""
Top = Char(2)
Visible = -1
Width = Char(52)
END
BEGIN CommandButton SendButton
BackColor = QBColor(7)
Cancel = 0
Caption = "Send"
Default = 0
DragMode = 0
Enabled = -1
Height = Char(3)
Left = Char(10)
MousePointer = 0
TabIndex = 1
TabStop = -1
Tag = ""
Top = Char(6)
Visible = -1
Width = Char(15)
END
BEGIN CommandButton Exit1
BackColor = QBColor(7)
Cancel = 0
Caption = "Exit"
Default = 0
DragMode = 0
Enabled = -1
Height = Char(3)
Left = Char(34)
MousePointer = 0
TabIndex = 2
TabStop = -1
Tag = ""
Top = Char(6)
Visible = -1
Width = Char(14)
END
BEGIN Label Label1
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Message To Send:"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(4)
MousePointer = 0
TabIndex = 3
Tag = ""
Top = Char(1)
Visible = -1
Width = Char(17)
END
END
'$FORM Netdemo
TYPE SCMESS
ReturnCode AS INTEGER
Message AS STRING * 60
END TYPE
DECLARE SUB SendMsgToConsole (SendC AS SCMESS)
SUB Exit1_Click ()
UNLOAD console
Netdemo.SHOW
END SUB
SUB SendButton_Click ()
DIM SendC AS SCMESS
SendC.Message = msg1.text
CALL SendMsgToConsole(SendC) 'Call the Procedure
IF SendC.ReturnCode = 0 THEN
msg$ = "Message Sent To Console"
MSGBOX msg$, 0, "Confirmed Message"
ELSE
msg$ = "Message Not Sent"
MSGBOX msg$, 0, "Message Error"
END IF
msg1.text = ""
END SUB